/*******************************************************************
 * 外语翻译平台(translate) 
 *
 * 成都一亿信息技术公司 版权所有
 * 
 * Copyright (C) 2010 Transer Information Technology Co., Ltd.
 *
 * @Version : 1.0  2011-1-12 上午11:53:00
 *
 * LoginLog.java
 *
 *******************************************************************/
package com.transer.persistance.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * class defination are there
 * 
 * @author Mark
 * 
 * @version 1.0 ywengineer@gmail.com
 * 
 */
public class LoginLog implements Serializable {

	private static final long serialVersionUID = 3358216488247189473L;
	/** 日志ID */
	private int id;
	/** 用户ID */
	private User user;
	/** 登陆时间 */
	private Date loginTime;
	/** 用户ID */
	private int userID;

	public LoginLog() {
	}

	public LoginLog(User user) {
		this.user = user;
		this.userID = user.getId();
	}

	public LoginLog(User user, Date loginTime) {
		this(user);
		this.loginTime = loginTime;
	}

	/**
	 * @return the userID
	 */
	public int getUserID() {
		return userID;
	}

	/**
	 * @param userID
	 *            the userID to set
	 */
	public void setUserID(int userID) {
		this.userID = userID;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the loginTime
	 */
	public Date getLoginTime() {
		return loginTime;
	}

	/**
	 * @param loginTime
	 *            the loginTime to set
	 */
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
}
